<?php

class Create_Malls_Table {

  /**
   * Make changes to the database.
   *
   * @return void
   */
  public function up() {
    Schema::table('malls', function($table) {
      $table->create();
      $table->increments('id');
      $table->string('name');
      $table->string('url', 1024);
      $table->string('logo_url', 1024);
      $table->text('description');
      $table->timestamps();
    });
  }

  /**
   * Revert the changes to the database.
   *
   * @return void
   */
  public function down() {
    Schema::drop('malls');
  }
}
